referral link
๐ Feature descriptionโ
- ๐ป Referral link ๐ซ 2023-11-15 ๐ 2023-12-17 โ 2023-12-02
๐ Scenarios:โ
โ (0) Referral linkโ
Given I am a new User that logged in without any referral link
When I go to profile, I have a referral link using my public UUID (i.e. 3ZfJXPcfZ3hXr1KeWXiToe27QpU2
)
Then The new user is stored in a JSON file called referral_tree.json
under the root
element and any new user coming from this user will be stored under his public UUID
Example:
{
"root":[
"3ZfJXPcfZ3hXr1KeWXiToe27QpU2" -- user registered without referral id
". . ."
],
"3ZfJXPcfZ3hTr1KeWXiToe27QpU2":[
"fe3ca2a521e64948d", -- user referred by "3ZfJXPcfZ3hXr1KeWXiToe27QpU2"
". . ."
],
"fe3ca2a21e64948d":[
". . .",
". . .",
". . ."
]
}
Only admin user should have access to this referral tree for the moment so we keep the storage access restricted as possible (๐ security first).